package com.sh.learn.ibeifeng.webservice.axis;

import org.apache.axis.SimpleChain;

//<handler name="HelloChainHandler" type="java:com.sh.learn.ibeifeng.webservice.axis.HelloChainHandler">
//<parameter name="state" value="0" />
//</handler>
//<handler name="HelloChainHandler1" type="java:com.sh.learn.ibeifeng.webservice.axis.HelloChainHandler1">
//<parameter name="state" value="1" />
//</handler>
//<chain name="HelloChainChain">
//<handler type="java:com.sh.learn.ibeifeng.webservice.axis.HelloChainChain" />
//</chain>
//
//<service name="HelloChain" provider="java:RPC">
//  <parameter name="className" value="com.sh.learn.ibeifeng.webservice.axis.HelloChain" />
//  <parameter name="allowedMethods" value="*" />
//  <requestFlow>
//    <chain type="HelloChainChain" />
//  </requestFlow>
//  <responseFlow>
//    <handler type="HelloChainHandler" />
//    <handler type="HelloChainHandler1" />
//  </responseFlow>
//</service>
public class HelloChainChain extends SimpleChain{
	// chain是特殊的handler
	public HelloChainChain(){
		// 调用需要使用的handler
		// 这样调用的handler，无法读取配置参数
		HelloChainHandler handler = new HelloChainHandler();
		HelloChainHandler1 handler1 = new HelloChainHandler1();
		// 将使用的handler放入chain中
		this.addHandler(handler);
		this.addHandler(handler1);
	}
}
